<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>桥梁监测</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
          name='viewport'/>
    <link rel="stylesheet" href="/assets/css/bootstrap.min.css">
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
    <link rel="stylesheet" href="/assets/css/ready.css">
    <link rel="stylesheet" href="/assets/css/demo.css">
    <link rel="stylesheet" href="/assets/css/mystyle.css">
    <link rel="stylesheet" href="/assets/css/style.default.css">
</head>
<body>
<div class="wrapper">
    <div th:replace="~{index::topbar}"></div>
    <div th:replace="~{index::sidebar(activeUri='/bridge/overview')}"></div>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">桥梁信息</h4>
            <!--Manage part-->
            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-header">
                            <div class="card-text text-left">
                                请选择你要查看的桥梁信息
                            </div>
                        </div>
                    <div class="row card-body">
                    <div class="col-lg-4 form-inline">
                        <label for="DomainInput" class="h4">地区:</label>
                        <select class="form-control input-fixed" id="domain_group">
                            <option value="-1">全部桥梁</option>
                            <option th:each="Domain,iterStat:${doms}" th:value="${Domain.DomainID}" th:text="${Domain.DomainName}" th:selected="${Domain.DomainID == selected_index ? 1:0}">洪山区</option>
                        </select>
                    </div>
                    <div class="col-lg-4 col-lg-offset-6">
                    <div class="input-group">
                        <input type="text" placeholder="Search ..." class="form-control" id="Bridgename">
                        <div class="input-group-append">
                                <span class="input-group-text" id="BridgeSearch">
                                    <i class="la la-search search-icon"></i>
                                </span>
                        </div>
                    </div>
                    </div>
                </div>
                </div>
            </div>
 
            <!-- Projects Section-->
          <section class="projects no-padding-top col-lg-12">
            <div class="container-fluid" th:each="Bridge,iterStat:${bris}">
              <!-- Project-->
              <div class="project">
                <div class="row bg-white has-shadow">
                  <div class="left-col col-lg-6 d-flex align-items-center justify-content-between">
                    <div class="project-title d-flex align-items-center">
                      <div class="image has-shadow"><img src="/assets/img/project-1.jpg" alt="桥图片后期在数据库添加，包括svg图" class="img-fluid"></div>
                      <div class="text">
                        <h3 class="h4" th:text="${Bridge[4]}">洪山大桥</h3><small th:text="${Bridge[8]}">洪山区</small>
                      </div>
                    </div>
                    <div class="project-date"><span class="hidden-sm-down" th:text="'长度:'+${Bridge[3]}+'KM'"></span></div>
                  </div>
                  <div class="right-col col-lg-6 d-flex align-items-center">
                    <div class="time"><i class="fa fa-clock-o" th:text="'跨径:'+${Bridge[5]}+'KM'"></i></div>
                    <div class="comments"><i class="fa fa-comment-o" th:text="'使用年限:'+${Bridge[7]}+'年'"></i></div>
                    <!-- <div class="project-progress">
                      <div class="progress">
                        <div role="progressbar" style="width: 45%; height: 6px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" class="progress-bar bg-red"></div>
                      </div>
                    </div> -->
                    <div class="col-lg-7">
                        <!-- Split button -->
                        <div class="btn-group">
                          <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <span class="sr-only">Toggle Dropdown</span>
                            操作
                          </button>
                          <ul class="dropdown-menu">
                            <li><a th:href="@{'/bridge/detail/'+${Bridge[0]}}">查看</a></li>
                            <li><a th:href="@{'/bridge/analysis/'+${Bridge[0]}}">数据分析</a></li>
                          </ul>
                        </div>
                        <button class="btn btn-default" type="button" data-toggle="modal" data-target="#DeleteBridge">删除</button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </section>   
            </div>
                <div th:replace="~{index::footer}"></div>
        </div>
    </div>
</div>
<!-- Modal -->
<div class="modal fade" id="modalUpdate" tabindex="-1" role="dialog" aria-labelledby="modalUpdatePro"
     aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h6 class="modal-title"><i class="la la-frown-o"></i> Under Development</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body text-center">
                <p>Currently the pro version of the <b>Ready Dashboard</b> Bootstrap is in progress development</p>
                <p>
                    <b>We'll let you know when it's done</b></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
    <!--DeleteBridgeModal-->
    <div class="modal fade" tabindex="-1" role="dialog" id="DeleteBridge">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">确认删除</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            </div>
        <div class="modal-body text-center">
            <p>确认删除该桥梁？确认会一同删除桥上的传感器</p>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary">确认</button>
        </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
</body>
<script src="/assets/js/core/jquery.3.2.1.min.js"></script>
<script src="/assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
<script src="/assets/js/core/popper.min.js"></script>
<script src="/assets/js/core/bootstrap.min.js"></script>
<script src="/assets/js/plugin/chartist/chartist.min.js"></script>
<script src="/assets/js/plugin/chartist/plugin/chartist-plugin-tooltip.min.js"></script>
<script src="/assets/js/plugin/bootstrap-notify/bootstrap-notify.min.js"></script>
<script src="/assets/js/plugin/bootstrap-toggle/bootstrap-toggle.min.js"></script>
<script src="/assets/js/plugin/jquery-mapael/jquery.mapael.min.js"></script>
<script src="/assets/js/plugin/jquery-mapael/maps/world_countries.min.js"></script>
<script src="/assets/js/plugin/chart-circle/circles.min.js"></script>
<script src="/assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
<script src="/assets/js/ready.min.js"></script>
<script src="/assets/js/demo.js"></script>
<script src="/assets/js/echarts-all.js"></script>
<script src="/assets/js/AllBridge.js"></script>
</html>